import { BrowserRouter, Routes, Route } from "react-router-dom";
import "@arco-design/web-react/dist/css/arco.css"; // 引入 Arco Design 样式

import Login from "./pages/Login";
import Register from "./pages/Register";
import NotFound from "./pages/NotFound";
import { RouteMonitor } from "./components/RouteMonitor";

function App() {
  return (
    <BrowserRouter>
      <RouteMonitor />
      <Routes>
        <Route path="/" element={<Login />} />
        <Route path="/login" element={<Login />} />
        <Route path="/register" element={<Register />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </BrowserRouter>
  );
}

export default App;
